<ion-side-menus enable-menu-with-back-views="false">
    <ion-side-menu-content class="app-side-menu">
        <ion-nav-bar>
            <ion-nav-back-button class="button-icon ion-ios-arrow-back">
            </ion-nav-back-button>
            <ion-nav-buttons side="left">
                <button class="button button-icon button-clear ion-navicon" menu-toggle="left">
                    <span class="u9-update-badge" ng-if="appData.updateAvailable"></span>
                </button>
            </ion-nav-buttons>
            <ion-nav-buttons side="right">
                <button class="button button-icon button-clear ion-android-more-vertical"
                        style="min-width: 26px"
                        ng-click="popover.show($event)">
                </button>
            </ion-nav-buttons>
        </ion-nav-bar>
        <ion-nav-view class="main-view"></ion-nav-view>
    </ion-side-menu-content>

    <ion-side-menu side="left" class="side-menu-left">
        <ion-header-bar>
            <ion-item class="side-menu-header" ng-click="goUser()" menu-close>
                <img ng-src="{{appData.user.photo || 'img/default-avatar.png'}}">
                <span class="name">{{appData.user.name || '请登录'}}</span>
            </ion-item>
        </ion-header-bar>
        <ion-content has-bouncing="true">
            <ion-list class="side-menu-list">
                <ion-item href="#/app/home" class="item-thumbnail-left" menu-close>
                    <img src="img/menu-home.png">
                    <span>U9工作台</span>
                </ion-item>
                <ion-item href="#/app/login" class="item-thumbnail-left" menu-close>
                    <img src="img/menu-login.png">
                    <span>用户登录</span>
                </ion-item>
                <ion-item href="#/app/connect" class="item-thumbnail-left" menu-close>
                    <img src="img/menu-connect.png">
                    <span>连接设置</span>
                </ion-item>
                <ion-item href="#/app/download" class="item-thumbnail-left" menu-close>
                    <img src="img/menu-download.png">
                    <span>下载应用</span>
                    <span class="u9-update-badge" ng-if="appData.updateAvailable"></span>
                </ion-item>
                <ion-item href="#/app/about" class="item-thumbnail-left" menu-close>
                    <img src="img/menu-about.png">
                    <span>关于 U9</span>
                </ion-item>
            </ion-list>
        </ion-content>
        <ion-footer-bar class="side-menu-footer-bar">
            <div class="row fn-row">
                <button class="button button-clear setting-button col " ng-click="goSetting()" menu-close>
                    <img src="img/icon_setting.png">
                    设置
                </button>
                <button class="button button-clear signout-button col" ng-click="logout()" menu-close>
                    <img src="img/icon_signout.png">
                    注销
                </button>
            </div>
        </ion-footer-bar>
    </ion-side-menu>
</ion-side-menus>